package com.bolt.admin.security.shiro.jwt;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

/**
 * Created by Administrator on 2020/9/7.
 */
@Data
public class UserInfo implements Serializable {


    @ApiModelProperty(notes = "用户名")
    String userName;

    @ApiModelProperty(notes = "用户 ID")
    String userId;

    @ApiModelProperty(notes = "用户姓名")
    String realName;

    @ApiModelProperty(notes = "地区级别")
    String areaLevel;

    @ApiModelProperty(notes = "地区编码")
    String areaCode;

    @ApiModelProperty(notes = "地区名称")
    String areaName;

    @ApiModelProperty(notes = "机构名称")
    String orgName;

    @ApiModelProperty(notes = "机构编码")
    String orgCode;

    @ApiModelProperty(notes = "单位类型")
    private String orgType;

    @ApiModelProperty(notes = "单位级别")
    private String orgLevel;

    @ApiModelProperty(notes = "邮箱")
    private String email;

    @ApiModelProperty(notes = "电话")
    private String mobile;

    @ApiModelProperty(notes = "机构ID")
    private String orgId;

    @ApiModelProperty(notes = "头像名称")
    private String avatarPath;

    @ApiModelProperty(notes = "系统访问accessToken")
    String accessToken;

    @ApiModelProperty(notes = "系统访问accessToken失效时间")
    Date ExpirationDate;

    @ApiModelProperty(notes = "是否超级管理")
    Boolean isAdmin;

    @ApiModelProperty(notes = "权限信息")
    Set<String> permissions;

    @ApiModelProperty(notes = "角色信息")
    Set<String> roles;



}

 